//main.qml
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtQuick.Controls.Styles 1.4

Button{
    id:control
    background: Rectangle{
        color: control.hovered? (control.down?"#AAAAAA":"#BBBBBB"): "#DDDDDD"
        radius: 5
    }

    Component.onCompleted: {
        console.log("MyButton.onCompleted()")
    }
}
